﻿using RpcCentral.Service.Interface;
using RpcCentral.Service.Route;
using WeDonekRpc.Model;

namespace RpcCentral.Service.Event
{
    internal class GetRemoteServerEvent : TcpRoute<GetRemoteServer, ServerConfigInfo>
    {
        private IGetServerNodeService _Service;
        public GetRemoteServerEvent(IGetServerNodeService service):base()
        {
            _Service = service;
        }
        protected override ServerConfigInfo ExecAction(GetRemoteServer param)
        {
            return _Service.Get(param);
        }
    }
}

